//
//  ZJSortBtn.m
//  ZiJinLian
//
//  Created by 🐛 on 2017/6/29.
//  Copyright © 2017年 lzy. All rights reserved.
//

#import "ZJSortBtn.h"

@implementation ZJSortBtn

- (id)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        NSString*str=@"综合";
        CGSize size=[str sizeWithAttributes:@{NSFontAttributeName:FontAndStyle14}];
        self.varLabel = [[UILabel alloc] initWithFrame:CGRectMake(self.frame.size.width/2-size.width/2-8, 12.5, size.width, 15)];
        self.varLabel.text= @"价格";
        self.varLabel.textColor = TextColor3;
        self.varLabel.font = FontAndStyle12;
        [self addSubview:self.varLabel];
        self.varImage = [[UIImageView alloc] initWithFrame:CGRectMake(self.varLabel.bsg_x+size.width ,self.varLabel.bsg_centerY-6, 8, 12)];
        self.varImage.image = [UIImage imageNamed:@"sales_arrows_nor"];
        [self addSubview:self.varImage];
    }
    return self;
}
@end
